#ifndef TMMYSQLCTRL_H
#define TMMYSQLCTRL_H

#include <QObject>
#include <QtSql>
#include <QTimer>

class TMMySQLCtrl : public QObject
{
    Q_OBJECT
public:
    explicit TMMySQLCtrl(QObject *parent = 0);

    bool connect_mysql(QString m_strIp);

    int getPortByRobotMac(QString strMac);

private:
    QSqlDatabase pr_dbMysql;

};

#endif // TMMYSQLCTRL_H
